﻿using PluginBase;

namespace Plugin.Demo
{
    public partial class UserControl1 : UserControlBase
    {
        public UserControl1()
        {
            InitializeComponent();
            ucName = "Plugin.Demo";
        }

        private void UserControl1_Load(object sender, EventArgs e)
        {
            var configuration = GetConfiguration();
            var value = configuration?.GetSection("Plugin.Demo:KeyName").Value;
            if (value != null) Log(value);
            var name = configuration?.GetSection("Plugin.Demo:connectionStrings:0:name").Value;
            if (name != null) Log(name);
        }
    }
}